<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/commons/commonList.jsp"%>

<title>服务价目表</title>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript">

 var curentStaName='';
 var currentPrice='';
  function setChargeItem(staName,price){
  curentStaName=staName;
  currentPrice=price;

  }

  function saveChargeItem(){
   try{
   if(curentStaName==''){
   return false;
   }
	var iframe=findFrame("editChargeItem");
		iframe.setChargeItem(curentStaName,currentPrice);
	}catch(ex){
	}

	windowClose();
  }

  function research(){
  document.standardresearchForm.submit();
  }

</script>

</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><span class="window_head_intext"><img src="${ctx}/images/ico_Advance.gif" align="absmiddle" />&nbsp;服务项目选择</span></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  </table>
  <div style="overflow:auto; height:310px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0">
        <table width="100%" border="0" cellpadding="0" cellspacing="1"  >
          <tr>
            <td>

  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
      <td class="bg_search">

	  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>

      <td class="bg_search"><table border="0" cellpadding="0" cellspacing="1">
        <tr>

          <td class="td_search align_left">
            服务项目：</td>
          <td class="td_search align_left">
         <form name="standardresearchForm" method="post" action="${ctx}/charge_chargeStandardAction.do?method=queryChargeSelectList">
          <input name="staName" type="text" class="inputtext" value="" size="16" /></td>
          </form>
          <td class="td_search"><table border="0" cellpadding="0" cellspacing="0" >
              <tr>
                <td class="buttonOffLeft" id="btn1_91"></td>
                <td class="buttonOffMiddle" id="btn1_92" onblur="btn_change(9)" onMouseOver="btn_change_over(9)" onMouseOut="btn_change_out(9)" onClick="research();"><img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle" /> 查
                  询</td>
                <td class="buttonOffRight" id="btn1_93"></td>
              </tr>
          </table></td>
        </tr>
      </table></td>
        </tr>
      </table>



	  	  </td>
    </tr>

    <tr>
      <td valign="top">


      <ec:ceTable items="chargeSelectList"
			autoIncludeParameters="true"
			var="chargeSelectListItem"
			action="${ctx}/charge_chargeStandardAction.do?method=queryChargeSelectList"
			rowsDisplayed="${totalRows}"
			width="100%"
			view="pmsNoPageView"
			styleClass="gridData"
			>
			<ec:ceRow styleClass="grid" onclick="setChargeItem('${chargeSelectListItem.staName}','${chargeSelectListItem.price}');" ondblclick="saveChargeItem();">
				<ec:ceColumn headerCell="pmsHeadrCell" width="70%" property="staName" title="服务项目"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="30%" property="price" title="价格"></ec:ceColumn>

			</ec:ceRow>
	</ec:ceTable>




        </td>
    </tr>
  </table>
</td>
            </tr>
        </table></td>
    </tr>
  </table>

</td>
  </tr>
  </table>
  </div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
        <tr><td><table border="0"  cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
    </table>      </td>
	       <td class="btn_between_space"></td>
          <td><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="buttonOffLeft" id="btn1_31"></td>
                <td class="buttonOffMiddle" id="btn1_32" onClick="saveChargeItem();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onBlur="btn_change(3)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 确 定</td>
                <td class="buttonOffRight" id="btn1_33"></td>
              </tr>
          </table></td>
          <td class="btn_between_space"></td>
          <td><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="buttonOffLeft" id="btn1_31"></td>
                <td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onBlur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 关 闭</td>
                <td class="buttonOffRight" id="btn1_33"></td>
              </tr>
          </table></td>
        </tr>
          </table>
      <p>&nbsp;</p></td>
  </tr>
</table>


</body>
</html>